package com.nineclock.approve.resolver;

import cn.hutool.json.JSONObject;
import org.activiti.bpmn.model.Process;
import org.activiti.bpmn.model.UserTask;
// 抄送节点处理器
public class CCListNodeResolver extends ProcessNodeResolver{
    @Override
    public void addFlowNodeToActiviti(Process process, JSONObject currNode, JSONObject nextNode) {
       // 创建抄送节点
        UserTask userTask = new UserTask();
        userTask.setId(getNodeId(currNode));
        userTask.setName(currNode.getStr("name"));
        userTask.setCategory("2"); //1审批正常节点 2代表抄送节点
        process.addFlowElement(userTask);
        newSequenceFlow(process, currNode, nextNode);
    }
}
